import http from "@/utils/http.js"

export function getAllRoles(data) {
	return http('AllRoles', {
		method: 'get'
	})
}

export function Login(data) {
	return http('Login', {
		...data,
		method: 'get'
	})
}
export function updateUserInfo(data) {
	return http('/user/update', data)
}

export function AllUsers(data) {
	return http('AllUsers', {
		...data,
		method: 'get'
	})
}
export function AllRoles(data) {
	return http('AllRoles', {
		...data,
		method: 'get'
	})
}
export function AllWorkshops(data) {
	return http('AllWorkshops', {
		...data,
		method: 'get'
	})
}
export function Register(data) {
	return http('Register', {
		...data,
		method: 'get'
	})
}
export function DeleteUser(data) {
	return http('DeleteUser', {
		...data,
		method: 'get'
	})
}
export function ChangePassword(data) {
	return http('ChangePassword', {
		...data,
		method: 'get'
	})
}